<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<?php use_helper('I18N'); ?>

<form action="<?php echo url_for('usuario/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
<div class="tab2"><label>Datos del anuncio</label></div>
<div class="margin-left">
<?php echo $form['articulo']['categoria_id']->renderRow() ?>
<?php echo $form['articulo']['tipo_id']->renderRow() ?>
<?php echo $form['articulo']['ubicacion_id']->renderRow() ?>
<?php echo $form['articulo']['titulo']->renderRow() ?>
<?php echo $form['articulo']['descripcion']->renderRow() ?>
<div class="form_row">
  <?php echo $form['articulo']['precio']->renderLabel() ?>
<?php echo $form['articulo']['precio']->render() ?><?php echo $form['articulo']['moneda']->render() ?>
<?php echo $form['articulo']['precio']->renderHelp() ?>
</div>
<?php //echo $form['articulo']['precio']->renderRow() ?>
<?php echo $form['articulo']['forma_pago_id']->renderRow() ?>
</div>
<div class="tab2"><label>Fotos</label></div>
<div class="margin-left">
  <?php echo $form['articulo']['fotos']['foto1']->render() ?>  
  <?php echo $form['articulo']['fotos']['foto2']->render() ?>
  <?php echo $form['articulo']['fotos']['foto3']->render() ?>
</div>
<div class="tab2"><label>Datos de contacto</label></div>
<div class="margin-left">
  <?php echo $form['nombre']->renderRow() ?>
  <?php echo $form['email']->renderRow() ?>
  <?php echo $form['captcha']->renderRow() ?>  
</div>
  
</div>
<div class="margin-left check_container"><?php echo $form['acepta_tyc']->renderRow() ?></div>
<div class="margin-left check_container"><?php echo $form['acepta_news']->renderRow() ?></div>
<div class="margin-left">
<div class="btn_publicar_ahora">
  <div id="indicator"><?php echo image_tag('ajax-loader.gif')?></div>
  <input type="submit" value="Publicar ahora!" onclick="$('#indicator').fadeIn(2000);" />
</div>
</div>
<?php echo $form->renderHiddenFields(true) ?>
</form>